package fx.mine.active.component.news;

import javafx.scene.layout.AnchorPane;
import javafx.scene.text.Text;
import lombok.extern.log4j.Log4j2;

@Log4j2
public class NewsPane extends AnchorPane {
    public NewsPane(double width, double height) {
        setPrefSize(width, height);

        Text text = new Text("this is news pane");
        text.setX(100);
        text.setY(100);
        getChildren().add(text);

        getStyleClass().add("newsPane");
        getStylesheets().add(getClass().getResource("/css/newsPane.css").toExternalForm());
    }
}
